﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Web.Security;

namespace QualityStorm {
    public partial class FrmChangePassword : Form {

        string m_Password;

        public string Password {
            get {
                return m_Password;
            }
            set {
                m_Password = value;
                txtPassword.Text = m_Password;
                txtPassword.Enabled = false;
            }
        }

        public FrmChangePassword() {
            InitializeComponent();
        }

        private void FrmChangePassword_Load(object sender, EventArgs e) {

        }

        private void btnOK_Click(object sender, EventArgs e) {
            if (txtPassword.Text != txtPasswordConfirmation.Text) {
                MessageBox.Show("Passwords don't match!", "Attention", MessageBoxButtons.OK);
                return;
            } else {
                m_Password = txtPassword.Text;
                DialogResult = DialogResult.OK;
                Close();
            }
        }
    }
}
